import Vue from 'vue'
import App from './App.vue'
import router from '../src/router/index'
import "babel-polyfill"
import 'es6-promise/auto'
import '../src/assets/iconfont/iconfont.css'

import './config/rem'
import 'lib-flexible'

// import NutUI from '@nutui/nutui';
// import '@nutui/nutui/dist/nutui.css';

//muse-ui
// import MuseUI from 'muse-ui';
// import 'muse-ui/dist/muse-ui.css';
// Vue.use(MuseUI);

//图片懒加载
import VueLazyload from "vue-lazyload";
Vue.use(VueLazyload,{
  loading: require('../src/assets/image/loading.gif'),
  error: require('../src/assets/image/error.svg'),
  preLoad: 1.3,
  attempt: 1
});

// NutUI.install(Vue);

import store from '../src/store'
import "../src/assets/css/global.css";

// import ElementUI from 'element-ui';  //引入Element ui
// import 'element-ui/lib/theme-chalk/index.css';
// Vue.use(ElementUI); //使用 ElementUI

// import axios from 'axios';

Vue.prototype.axios = axios;

// axios.defaults.withCredentials = true
axios.defaults.baseURL = "http://www.pghhh.top"
// axios.defaults.baseURL = "/"


Vue.use(axios);

//音乐播放器
import APlayer from '@moefe/vue-aplayer'
Vue.use(APlayer, {
  defaultCover: 'https://github.com/u3u.png',
  productionTip: true,
});

// //移动端控制台
// import Vconsole from 'vconsole'
// const vConsole = new Vconsole()

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
  // components:{Move},
  // template:'<Move/>',
  // render(h){
  //     return h('mu-button',{},'Hello World');
  // }
}).$mount('#app')
